package cn.stronglink.assetmanage.business.setting.syncset;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import cn.stronglink.assetmanage.R;

/**
 * @author zww
 * 2018 2018/6/18 8:47
 */
public class SystemSyncContentHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
    @BindView(R.id.imgSync)
    ImageView imgSync;
    @BindView(R.id.txtSyncContent)
    TextView txtSyncContent;
    @BindView(R.id.imgCheck)
    ImageView imgCheck;
    private SyncListener listener;

    SystemSyncContentHolder(View view, SyncListener listener) {
        super(view);
        this.listener = listener;
        ButterKnife.bind(this, view);
        view.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        if (null != listener) {
            listener.onSynItemClick(view, getAdapterPosition());
        }
    }
}
